#%RAML 0.8
# Basic starter raml with two resources and corresponding methods.
---
title: RIVTA-WS Client API
version: 1.0
baseUri: http://localhost:8080
documentation:
    - title: Title
    - content: Content
protocols: [HTTP]
#schemas:
#  - findOfferJson: !include findOfferSchema.json
#  - getCapacityJson: !include getCapacitySchema.json
#  - getProductCatalogueJson: !include getProductCatalogueSchema.json
#  - pullOfferJson: !include pullOfferSchema.json
/test:
  description: Test
  /FindOffers/{version}:
    displayName: FindOffers
    description: Calls FindOffers
    post:
      description: FindOffers
      body:
        application/json:
          example: |
            {
              "hsaId": ["hsaId2", "hsaId3"]
            }
      responses:
        201:
          description: FindOffers was called
          body:
            application/json
  /GetProductCatalogue/{version}:
    displayName: GetProductCatalogue
    description: Calls GetProductCatalogue WS and returns the xml request and xml response
    post:
      description: GetProductCatalogue
      body:
        application/json:
          example: |
            {
              "codeSystem" : "oid.sll.productcatalogue"
            } 
  /PullOffers/{version}:
    displayName: PullOffers
    description: Calls PullOffers WS and returns the xml request and xml response
    post:
      description: PullOffers
      body:
        application/json:
          example: |
            {
              "start" : "20100101"
              "end" : "20140101"
            } 
  /GetCapacities/{version}:
    displayName: PullOffers
    description: Calls PullOffers WS and returns the xml request and xml response
    post:
      description: PullOffers
      body:
        application/json:
          example: |
            {
              "hsaId" : ["test1"]
              "codeSystem" : ["oid.sll.vantetider"]
              "product" : ["produkt"]
            } 
